<?php 
function getC3Table($nianji){
    $theTable='c3';
    if('g1' == $nianji){
        $theTable='c3_g1';
    }
    if('g2' == $nianji){
        $theTable='c3_g2';
    }
    if('g3' == $nianji){
        $theTable='c3_g3';
    }
    if('c1' == $nianji){
        $theTable='c3_c1';
    }
    if('c2' == $nianji){
        $theTable='c3_c2';
    }
    if('c3' == $nianji){
        $theTable='c3_c3';
    }
    if('yc' == $nianji){
        $theTable='c3_yc';
    }
    if('zz' == $nianji){
        $theTable='c3_zz';
    }
    return $theTable;
}

function getC3LogTable($nianji){
    $theTable='c3_log';
    if('g1' == $nianji){
        $theTable='c3_log_g1';
    }
    if('g2' == $nianji){
        $theTable='c3_log_g2';
    }
    if('g3' == $nianji){
        $theTable='c3_log_g3';
    }
    if('c1' == $nianji){
        $theTable='c3_log_c1';
    }
    if('c2' == $nianji){
        $theTable='c3_log_c2';
    }
    if('c3' == $nianji){
        $theTable='c3_log_c3';
    }
    if('yc' == $nianji){
        $theTable='c3_log_yc';
    }
    if('zz' == $nianji){
        $theTable='c3_log_zz';
    }
    return $theTable;
}

function getU3Table($nianji){
    $theTable='u3';
    if('g1' == $nianji){
        $theTable='u3_g1';
    }
    if('g2' == $nianji){
        $theTable='u3_g2';
    }
    if('g3' == $nianji){
        $theTable='u3_g3';
    }
    if('c1' == $nianji){
        $theTable='u3_c1';
    }
    if('c2' == $nianji){
        $theTable='u3_c2';
    }
    if('c3' == $nianji){
        $theTable='u3_c3';
    }
    if('yc' == $nianji){
        $theTable='u3_yc';
    }
    if('zz' == $nianji){
        $theTable='u3_zz';
    }
    return $theTable;
}

?>